const Main = ()=>import("@/views/main/index.vue");

const recordMain = () => import("@/views/main/recordList/index.vue");
const recordList = () => import("@/views/main/recordList/recordList.vue");

const distinguishMain = () => import("@/views/main/distinguish/distinguishDetail.vue");

const imgProcess = () => import("@/views/main/imageProcess/process.vue");

export default {
  path: '/main',
  name: 'Main',
  component: Main,
  redirect: {name: 'app-main-imageProcess'},
  children: [
      /* 日志管理 */
      {
          path: 'recordMain',
          name: 'app-main-recordMain',
          meta: {
              title: '日志管理'
          },
          component: recordMain,
          redirect: {
              name: 'app-main-recordMain-recordList'
          },
          children: [
              {
                  path: 'recordList',
                  name: 'app-main-recordMain-recordList',
                  meta: {
                      title: '日志列表'
                  },
                  component: recordList
              }
          ]
      },
      {
          path: 'distinguish',
          name: 'app-main-distinguish',
          meta: {
              title: '图像识别'
          },
          component: distinguishMain
      },
      {
        path: 'imageProcess',
        name: 'app-main-imageProcess',
        meta: {
            title: '图像处理'
        },
        component: imgProcess
    },

  ]
}